﻿<template id="@(ViewBag.PageTemplate)">
    <div class="layout-page-dialog-content">
        <span>这里是基础内容</span>
        <single_editor v-model="editorValue" :height="250"></single_editor>
    </div>
</template>
<script type="text/javascript">
    var @(ViewBag.PageName) = {
        template: "#@(ViewBag.PageTemplate)", data() {
            return {
                path: "@(ViewBag.PagePath)",
                dialogRef: app.that.$refs.layout_page_dialog_ref,
                editorValue: "这里是富文本编辑器的默认内容"
            }
        },
        methods: {
            init(){
                this.dialogRef.submit = () => {
                    console.info(this.editorValue);
                    app.func.info("您点击了 dialog 的确定");
                    this.dialogRef.close();
                };
                this.dialogRef.width = 800;
            }
        },
        mounted() { this.init(); }
    };
</script>